/* 侧边栏基础样式 */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    padding-top: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #999;
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-left-color: rgba(255,255,255,.5);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.2);
    border-left-color: #fff;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 主内容区域样式 */
main {
    margin-left: 16.666667%; /* col-md-2的宽度 */
}

/* 表格样式 */
.table {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 500;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.75rem;
}

/* 搜索框样式 */
.search-input {
    border-radius: 20px;
    padding-left: 15px;
}

.search-btn {
    border-radius: 20px;
    margin-left: 10px;
    width: 6rem;
}

/* 按钮样式 */
.btn-group .btn {
    border-radius: 20px !important;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    border-radius: 20px;
}

/* 状态标签样式 */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: normal;
}

.status-online {
    background-color: #e7f6ed;
    color: #1d9a4d;
}

.status-offline {
    background-color: #f5f5f5;
    color: #757575;
}

/* 角色标签样式 */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: normal;
}

.role-admin {
    background-color: #ffebee;
    color: #d32f2f;
}

.role-user {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* 分类样式 */
.category-name {
    font-weight: 500;
    color: #2c3e50;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: normal;
}

.category-default {
    background-color: #fff3e0;
    color: #e65100;
}

.category-custom {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* 新闻数量标签 */
.news-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    background-color: #f5f5f5;
}

/* 新闻标题样式 */
.news-title {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 作者和日期信息 */
.author-info, .date-info {
    font-size: 0.85rem;
    color: #666;
}

/* 编辑按钮样式 */
.btn-info {
    color: white;
    background-color: #3285ff;
}

.btn-info:hover {
    color: white;
    background-color: #2875e8;
}

/* 表单样式 */
.form-control:focus {
    border-color: #3285ff;
    box-shadow: 0 0 0 0.2rem rgba(50, 133, 255, 0.25);
}

/* 禁用状态的按钮样式 */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
} 